package ai.mspbots.poc.db.entity;

import ai.mspbots.poc.db.handler.DoubleArrayTypeHandler;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName ind_array_vector
 */
@TableName(value ="poc_ind_array_vector")
@Data
public class IndArrayVector implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 
     */
    @TableField(typeHandler = DoubleArrayTypeHandler.class)
    private Double[] data;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public IndArrayVector() {

    }

    public IndArrayVector(String id, Double[] doubleVector) {
        this.id = id;
        this.data = doubleVector;
    }
}